import { RouteRecordRaw } from "vue-router";

export const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    redirect: "/home"
  },
  {
    path: "/home",
    name: "home",
    component: () =>
      import(/* webpackChunkName: "home" */ "../views/home/HomeView.vue")
  },
  {
    path: "/live_streaming",
    name: "LiveStreaming",
    component: () =>
      import(
        /* webpackChunkName: "streaming" */ "../views/liveStreaming/index.vue"
      )
  },
  {
    path: "/live_streaming_help",
    name: "LiveStreamingHelp",
    component: () =>
      import(
        /* webpackChunkName: "live-streaming" */ "../views/liveStreaming/LiveStreamingHelp.vue"
      )
  },
  {
    path: "/login",
    name: "Login",
    component: () =>
      import(/* webpackChunkName: "home" */ "../views/login/Login.vue")
  },
  {
    path: "/my",
    name: "My",
    component: () =>
      import(/* webpackChunkName: "home" */ "../views/my/index.vue")
  },
  {
    path: "/courseFind",
    name: "CourseFind",
    component: () =>
      import(/* webpackChunkName: "Course" */ "../views/courseFind/index.vue")
  },
  {
    path: "/course",
    name: "Course",
    component: () =>
      import(/* webpackChunkName: "Course" */ "../views/course/index.vue")
  },
  {
    path: "/course_manage",
    name: "CourseManage",
    component: () =>
      import(/* webpackChunkName: "Course" */ "../views/courseManage/index.vue")
  },
  {
    path: "/video",
    name: "Video",
    component: () =>
      import(/* webpackChunkName: "Course" */ "../views/video/index.vue")
  },
  {
    path: "/community",
    name: "Community",
    component: () =>
      import(/* webpackChunkName: "Community" */ "../views/community/index.vue")
  },
  {
    path: "/course_visualization",
    name: "CourseVisualization",
    component: () =>
      import(
        /* webpackChunkName: "Community" */ "../views/courseVisualization/index.vue"
      )
  },
  {
    path: "/publish",
    name: "Publish",
    component: () =>
      import(
        /* webpackChunkName: "Community" */ "../views/community/Publish.vue"
      )
  },
  {
    path: "/communityDetail",
    name: "CommunityDetail",
    component: () =>
      import(
        /* webpackChunkName: "Community" */ "../views/community/communityDetail.vue"
      )
  },
  {
    path: "/morelivestreaming",
    name: "MoreLiveStreaming",
    component: () =>
      import(
        /* webpackChunkName: "Community" */ "../views/liveStreaming/MoreLiveStreaming.vue"
      )
  },
  {
    path: "/chat",
    name: "Chat",
    component: () =>
      import(/* webpackChunkName: "Community" */ "../views/chat/index.vue")
  }
];
